<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>1.回顾对象语法</title>
  </head>
  <body>
    <script type="text/javascript" >
      let str = 'name'
      let person = {age:18}

      person[str] = '张三'

      console.log(person)
    </script>
  </body>
</html>